package com.asset.salesforce.form;

import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotEmpty;
import org.hibernate.validator.constraints.Range;
import org.springframework.format.annotation.NumberFormat;
import org.springframework.format.annotation.NumberFormat.Style;

public class AccountForm {
private Integer id;
	
	private Integer creatorName;
	
	//@NotEmpty()
	//@Pattern(regexp="^$|[a-zA-Z]+\\.?")
	private String accountName;
	@NotEmpty()
	private String companyName;
	@Pattern(regexp="^$|^[0-9]*$")
	private String fax;
	@Pattern(regexp="^$|^[0-9]*$")
	private String phone;
	@Pattern(regexp="^$|^[0-9]*$")
	private String mobile;
	private String website;
	//@NotEmpty()
	private String street;
	
	@Pattern(regexp="^$|^[0-9]*$")
	private String zipCode;
	//@NotNull(message="Please,Choose Your Country")
	private Integer country;
	//@NotNull(message="Please,Choose Your City")
	private Integer city;
	//@NotEmpty(message="Please choose State")
	private String state;
	//@NotEmpty()
	@Email()
	private String email;
	//@NotNull
	@Digits(integer=100000000, fraction = 0)
	@Range(min=1, max=10000 )
	private Integer empNum;
	//@NotNull()
	@Digits(fraction = 0, integer = 100000)
	@NumberFormat(style=Style.NUMBER)
	private Integer annualRevenue;
	//@NotEmpty()
	private String description;
	//@NotNull(message="Please choose the type")
	private Integer type;
	//@NotNull(message="Please choose the industry")
	private Integer industry;
	
	/**
	 * @return the creatorName
	 */
	public Integer getCreatorName() {
		return creatorName;
	}
	/**
	 * @param creatorName the creatorName to set
	 */
	public void setCreatorName(Integer creatorName) {
		this.creatorName = creatorName;
	}
	/**
	 * @return the accountName
	 */
	public String getAccountName() {
		return accountName;
	}
	/**
	 * @param accountName the accountName to set
	 */
	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}
	
	/**
	 * @return the fax
	 */
	public String getFax() {
		return fax;
	}
	/**
	 * @param fax the fax to set
	 */
	public void setFax(String fax) {
		this.fax = fax;
	}
	/**
	 * @return the phone
	 */
	public String getPhone() {
		return phone;
	}
	/**
	 * @param phone the phone to set
	 */
	public void setPhone(String phone) {
		this.phone = phone;
	}
	/**
	 * @return the website
	 */
	public String getWebsite() {
		return website;
	}
	/**
	 * @param website the website to set
	 */
	public void setWebsite(String website) {
		this.website = website;
	}
	/**
	 * @return the street
	 */
	public String getStreet() {
		return street;
	}
	/**
	 * @param street the street to set
	 */
	public void setStreet(String street) {
		this.street = street;
	}
	/**
	 * @return the zipCode
	 */
	public String getZipCode() {
		return zipCode;
	}
	/**
	 * @param zipCode the zipCode to set
	 */
	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}
	/**
	 * @return the country
	 */
	public Integer getCountry() {
		return country;
	}
	/**
	 * @param country the country to set
	 */
	public void setCountry(Integer country) {
		this.country = country;
	}
	/**
	 * @return the city
	 */
	public Integer getCity() {
		return city;
	}
	/**
	 * @param city the city to set
	 */
	public void setCity(Integer city) {
		this.city = city;
	}
	/**
	 * @return the state
	 */
	public String getState() {
		return state;
	}
	/**
	 * @param state the state to set
	 */
	public void setState(String state) {
		this.state = state;
	}
	/**
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}
	/**
	 * @param email the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}
	/**
	 * @return the empNum
	 */
	public Integer getEmpNum() {
		return empNum;
	}
	/**
	 * @param empNum the empNum to set
	 */
	public void setEmpNum(Integer empNum) {
		this.empNum = empNum;
	}
	/**
	 * @return the annualRevenue
	 */
	public Integer getAnnualRevenue() {
		return annualRevenue;
	}
	/**
	 * @param annualRevenue the annualRevenue to set
	 */
	public void setAnnualRevenue(Integer annualRevenue) {
		this.annualRevenue = annualRevenue;
	}
	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}
	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}
	/**
	 * @return the type
	 */
	public Integer getType() {
		return type;
	}
	/**
	 * @param type the type to set
	 */
	public void setType(Integer type) {
		this.type = type;
	}
	/**
	 * @return the industry
	 */
	public Integer getIndustry() {
		return industry;
	}
	/**
	 * @param industry the industry to set
	 */
	public void setIndustry(Integer industry) {
		this.industry = industry;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * @return the companyName
	 */
	public String getCompanyName() {
		return companyName;
	}
	/**
	 * @param companyName the companyName to set
	 */
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	/**
	 * @return the mobile
	 */
	public String getMobile() {
		return mobile;
	}
	/**
	 * @param mobile the mobile to set
	 */
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	
	

}
